let Koa = require('./myKoa/application');

let app = new Koa();

app.use((ctx, next) => {
    ctx.body = 'saber';
    next();
})

app.use((ctx, next) => {
    console.log(ctx.request.url)
    ctx.body = 'lancer'
})

app.listen(3000);

app.on('error', function(err) {
    console.log(err)
})